import numpy as np


def sigmoid(x):
    # 实际函数是这样的: f(x) = 1 / (1 + e^(-x))
    return 1 / (1 + np.exp(-x))


x = -10
print(sigmoid(x))
